/* 基础样式 */
:root {
  --primary-color: #ff7c7c;
  --primary-color-dark: #ff5252;
  --secondary-color: #ffb56b;
  --tertiary-color: #6bceff;
  --quaternary-color: #a78bfa;
  --text-color: #595959;
  --text-color-light: #8c8c8c;
  --background-color: #f9f9f9;
  --background-color-dark: #f0f0f0;
  --card-background: #fff;
  --divider-color: #f0f0f0;
}

.dark {
  --primary-color: #ff5252;
  --primary-color-dark: #f33;
  --secondary-color: #ffb56b;
  --tertiary-color: #4a8ec7;
  --quaternary-color: #a78bfa;
  --text-color: #d9d9d9;
  --text-color-light: #a6a6a6;
  --background-color: #1a1a1a;
  --background-color-dark: #0f0f0f;
  --card-background: #1f1f1f;
  --divider-color: #2a2a2a;
}

/* 全局样式 */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-color);
  background: linear-gradient(to bottom right, var(--background-color), var(--background-color-dark));
}

/* 页面容器 */
.profile-page {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

/* tsparticles 容器样式 */
#tsparticles {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 背景元素 */
.background-elements {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* 渐变圆 */
.gradient-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.2;
  filter: blur(80px);
}

.circle-1 {
  top: 10%;
  right: 15%;
  width: 300px;
  height: 300px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  animation: float 8s ease-in-out infinite;
}

.circle-2 {
  bottom: 20%;
  left: 10%;
  width: 250px;
  height: 250px;
  background: linear-gradient(to right, var(--tertiary-color), var(--quaternary-color));
  animation: float 10s ease-in-out 2s infinite;
}

.circle-3 {
  top: 40%;
  left: 20%;
  width: 200px;
  height: 200px;
  background: linear-gradient(to right, var(--secondary-color), #ffd86b);
  opacity: 0.15;
  filter: blur(60px);
  animation: float 12s ease-in-out 1s infinite;
}

/* 装饰性几何图形 */
.geometric-shape {
  position: absolute;
  border: 2px solid;
  opacity: 0.1;
}

.shape-1 {
  top: 15%;
  left: 5%;
  width: 100px;
  height: 100px;
  border-color: var(--primary-color);
  transform: rotate(12deg);
  animation: spin 30s linear infinite;
}

.shape-2 {
  right: 5%;
  bottom: 10%;
  width: 80px;
  height: 80px;
  border-color: var(--tertiary-color);
  transform: rotate(45deg);
  animation: spin-reverse 25s linear infinite;
}

.shape-3 {
  top: 60%;
  right: 15%;
  width: 120px;
  height: 60px;
  border-color: var(--secondary-color);
  transform: rotate(-12deg);
  animation: pulse-slow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@media (width <= 768px) {
  .shape-1,
  .shape-2,
  .shape-3 {
    display: none;
  }
}

/* 点状装饰 */
.dot-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #333 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.03;
}

/* 波浪装饰 */
.wave-top,
.wave-bottom {
  position: absolute;
  left: 0;
  z-index: 0;
  overflow: hidden;
  width: 100%;
  line-height: 0;
}

.wave-top {
  top: 0;
}

.wave-bottom {
  bottom: 0;
  transform: rotate(180deg);
}

.wave-svg {
  position: relative;
  display: block;
  width: 100%;
  height: 70px;
}

@media (width >= 640px) {
  .wave-svg {
    height: 100px;
  }
}

.wave-path {
  fill: var(--primary-color);
  opacity: 0.3;
}

.bottom-wave-path {
  fill: var(--tertiary-color);
  opacity: 0.3;
}

/* 英雄部分 */
.hero-section {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
  min-height: 100vh;
  flex-direction: column;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 头像容器 */
.avatar-container {
  position: relative;
  margin-bottom: 1.5rem;
  animation: fadeIn 1s ease-in-out forwards;
}

.avatar-glow {
  position: absolute;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  opacity: 0.6;
  filter: blur(8px);
  transition: opacity 1s;
  inset: -0.25rem;
}

.avatar-container:hover .avatar-glow {
  opacity: 1;
  transition: opacity 0.2s;
}

.avatar-wrapper {
  position: relative;
}

.avatar-image {
  border: 4px solid white;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 10%);
  animation: pulse-slow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 英雄标题 */
.hero-title {
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
  text-align: center;
  color: transparent;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  background-clip: text;
  opacity: 0;
  animation: fadeIn 1s ease-in-out 0.2s forwards;
  font-weight: bold;
}

/* 标签容器 */
.tag-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1rem;
  animation: fadeIn 1s ease-in-out 0.3s forwards;
  opacity: 0;
}

.pulse-tag {
  position: relative;
  overflow: hidden;
}

.pulse-tag::after {
  position: absolute;
  inset: 0;
  background: rgb(255 255 255 / 20%);
  content: "";
  transform: translateX(-100%);
  animation: shimmer 2s infinite;
}

/* 位置信息 */
.location {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--text-color);
  opacity: 0;
  animation: fadeIn 1s ease-in-out 0.4s forwards;
}

.location-icon {
  margin-right: 0.25rem;
  width: 1rem;
  height: 1rem;
  color: var(--primary-color);
}

/* 英雄描述 */
.hero-description {
  margin-bottom: 1.5rem;
  max-width: 32rem;
  text-align: center;
  color: var(--text-color);
  opacity: 0;
  animation: fadeIn 1s ease-in-out 0.5s forwards;
  line-height: 1.6;
}

/* 联系按钮 */
.contact-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  animation: fadeIn 1s ease-in-out 0.6s forwards;
  opacity: 0;
}

.primary-button {
  border: none;
}

.phone-button {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.message-button {
  background: linear-gradient(to right, var(--tertiary-color), var(--quaternary-color));
}

.primary-button:hover {
  opacity: 0.8;
}

.button-icon {
  width: 1rem;
  height: 1rem;
}

/* 滚动按钮 */
.scroll-button {
  animation: bounce 2s infinite 0.7s;
  opacity: 0;
}

.scroll-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary-color);
}

/* 内容容器 */
.content-container {
  position: relative;
  z-index: 10;
  padding: 0 1rem 5rem;
  margin: 0 auto;
  max-width: 1200px;
}

/* 章节样式 */
.section {
  padding: 4rem 0;
}

.section-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.header-line {
  width: 3rem;
  height: 0.125rem;
}

.left-line {
  background: linear-gradient(to right, transparent, var(--primary-color));
}

.right-line {
  background: linear-gradient(to right, var(--secondary-color), transparent);
}

.section-title {
  position: relative;
  margin: 0 1rem;
  font-size: 2rem;
  text-align: center;
  font-weight: bold;
}

.section-title span {
  color: transparent;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  background-clip: text;
}

.title-icon {
  position: absolute;
  top: -1.5rem;
  right: -2rem;
  width: 1.25rem;
  height: 1.25rem;
}

.sun-icon {
  color: var(--secondary-color);
  animation: spin 8s linear infinite;
}

.award-icon {
  color: var(--tertiary-color);
  animation: pulse 3s infinite;
}

.smile-icon {
  color: #ffd86b;
  animation: bounce 2s infinite;
}

.star-icon {
  color: #c78bfa;
  animation: pulse 3s infinite;
}

/* 内容卡片 */
.content-card {
  margin-bottom: 2.5rem;
  border-radius: 1rem;
}

.content-card .el-card__body {
  padding: 2rem;
}

/* 关于部分 */
.about-paragraph {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  color: var(--text-color);
  line-height: 1.75;
}

.info-box {
  padding: 1.5rem;
  height: 100%;
  border-radius: 0.75rem;
  transition: all 0.3s;
}

.info-box:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 10%);
}

.work-box {
  background: linear-gradient(to bottom right, white, #fff8f8);
}

.life-box {
  background: linear-gradient(to bottom right, white, #f8fff8);
}

.family-box {
  background: linear-gradient(to bottom right, white, #f8f8ff);
}

.goal-box {
  background: linear-gradient(to bottom right, white, #fffcf8);
}

.info-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.icon-container {
  padding: 0.5rem;
  margin-right: 0.75rem;
  border-radius: 9999px;
}

.work-icon-bg {
  background-color: #fff0f0;
}

.life-icon-bg {
  background-color: #f0fff0;
}

.family-icon-bg {
  background-color: #f0f0ff;
}

.goal-icon-bg {
  background-color: #fffcf0;
}

.info-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.work-icon {
  color: var(--primary-color);
}

.life-icon {
  color: var(--tertiary-color);
}

.family-icon {
  color: var(--quaternary-color);
}

.goal-icon {
  color: var(--secondary-color);
}

.info-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.work-title {
  color: transparent;
  background: linear-gradient(to right, var(--primary-color), #ff9b7c);
  background-clip: text;
}

.life-title {
  color: transparent;
  background: linear-gradient(to right, var(--tertiary-color), #6bffcb);
  background-clip: text;
}

.family-title {
  color: transparent;
  background: linear-gradient(to right, var(--quaternary-color), #c78bfa);
  background-clip: text;
}

.goal-title {
  color: transparent;
  background: linear-gradient(to right, var(--secondary-color), #ffd86b);
  background-clip: text;
}

.info-description {
  margin: 0;
  color: var(--text-color);
  line-height: 1.6;
}

/* 分隔线 */
.divider-container {
  position: relative;
  padding: 2rem 0;
}

.section-divider {
  border-top: 2px dashed var(--divider-color);
}

.divider-icon-container {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 0 1rem;
  background-color: var(--background-color);
  transform: translate(-50%, -50%);
}

.divider-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.zap-icon {
  color: var(--secondary-color);
}

.heart-icon {
  color: var(--primary-color);
}

.camera-icon {
  color: var(--quaternary-color);
}

/* 教育与工作 */
.education-title span {
  color: transparent;
  background: linear-gradient(to right, var(--tertiary-color), var(--quaternary-color));
  background-clip: text;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-item {
  position: relative;
  padding: 1.5rem;
  border-radius: 0.75rem;
  transition: all 0.3s;
}

.timeline-item:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 10%);
}

.work-item {
  background: linear-gradient(to bottom right, white, #f8f8ff);
}

.education-item {
  background: linear-gradient(to bottom right, white, #fff8f8);
}

.timeline-icon-container {
  position: absolute;
  top: 1.5rem;
  left: -0.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(to bottom right, var(--tertiary-color), var(--quaternary-color));
  border-radius: 50%;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 10%);
}

.education-icon-container {
  background: linear-gradient(to bottom right, var(--primary-color), var(--secondary-color));
}

.timeline-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.timeline-content {
  margin-left: 3rem;
}

.timeline-date {
  font-size: 0.875rem;
  color: var(--text-color-light);
}

.timeline-title {
  margin: 0.25rem 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.work-timeline-title {
  color: transparent;
  background: linear-gradient(to right, var(--tertiary-color), var(--quaternary-color));
  background-clip: text;
}

.education-timeline-title {
  color: transparent;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  background-clip: text;
}

.timeline-description {
  margin-top: 0.5rem;
  color: var(--text-color);
  line-height: 1.6;
}

/* 兴趣爱好 */
.interests-title span {
  color: transparent;
  background: linear-gradient(to right, var(--secondary-color), #ffd86b);
  background-clip: text;
}

.interest-card {
  height: 100%;
  border-radius: 1rem;
  transition: all 0.5s;
  transform: translateY(0);
}

.interest-card:hover {
  transform: translateY(-0.5rem);
}

.interest-header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  height: 10rem;
}

.coffee-header {
  background: linear-gradient(to bottom right, var(--primary-color), var(--secondary-color));
}

.travel-header {
  background: linear-gradient(to bottom right, var(--tertiary-color), var(--quaternary-color));
}

.music-header {
  background: linear-gradient(to bottom right, var(--secondary-color), #ffd86b);
}

.interest-bg-icon {
  width: 4rem;
  height: 4rem;
  color: white;
  opacity: 0.3;
}

.interest-content {
  padding: 1.5rem;
}

.interest-title {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.interest-description {
  margin: 0;
  color: var(--text-color);
  line-height: 1.6;
}

/* 生活方式 */
.lifestyle-title span {
  color: transparent;
  background: linear-gradient(to right, var(--quaternary-color), #c78bfa);
  background-clip: text;
}

.lifestyle-card {
  height: 100%;
  border-radius: 1rem;
}

.lifestyle-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.lifestyle-icon-container {
  padding: 0.5rem;
  margin-right: 0.75rem;
  border-radius: 9999px;
}

.daily-icon-bg {
  background-color: #f0f0ff;
}

.quality-icon-bg {
  background-color: #fff0f0;
}

.lifestyle-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.daily-icon {
  color: var(--quaternary-color);
}

.quality-icon {
  color: var(--primary-color);
}

.lifestyle-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.daily-title {
  color: transparent;
  background: linear-gradient(to right, var(--quaternary-color), #c78bfa);
  background-clip: text;
}

.quality-title {
  color: transparent;
  background: linear-gradient(to right, var(--primary-color), #ff9b7c);
  background-clip: text;
}

.lifestyle-description {
  margin-bottom: 1rem;
  color: var(--text-color);
  line-height: 1.6;
}

.lifestyle-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.list-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.list-bullet {
  margin-right: 0.5rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

.daily-bullet {
  background-color: var(--quaternary-color);
}

.quality-bullet {
  background-color: var(--primary-color);
}

.list-text {
  color: var(--text-color);
}

/* 未来期望 */
.future-title span {
  color: transparent;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  background-clip: text;
}

.future-relationship {
  margin-bottom: 2rem;
}

.future-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.future-icon-container {
  padding: 0.5rem;
  margin-right: 0.75rem;
  border-radius: 9999px;
}

.relationship-icon-bg {
  background-color: #fff0f0;
}

.partner-icon-bg {
  background-color: #fffcf0;
}

.future-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.relationship-icon {
  color: var(--primary-color);
}

.partner-icon {
  color: var(--secondary-color);
}

.future-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.relationship-title {
  color: transparent;
  background: linear-gradient(to right, var(--primary-color), #ff9b7c);
  background-clip: text;
}

.partner-title {
  color: transparent;
  background: linear-gradient(to right, var(--secondary-color), #ffd86b);
  background-clip: text;
}

.future-description {
  margin: 0;
  color: var(--text-color);
  line-height: 1.6;
}

.trait-card {
  border-radius: 0.75rem;
}

.personality-card {
  background: linear-gradient(to bottom right, white, #fff8f8);
}

.values-card {
  background: linear-gradient(to bottom right, white, #fffcf8);
}

.trait-title {
  display: flex;
  align-items: center;
}

.trait-icon {
  margin-right: 0.5rem;
  width: 1rem;
  height: 1rem;
}

.heart-trait-icon {
  color: var(--primary-color);
}

.star-trait-icon {
  color: var(--secondary-color);
}

.trait-description {
  margin: 0;
  color: var(--text-color);
  line-height: 1.6;
}

/* 页脚 */
.footer {
  position: relative;
  z-index: 10;
  padding: 1.5rem 0;
  text-align: center;
}

.footer-text {
  margin: 0;
  font-size: 1.125rem;
  color: var(--text-color-light);
}

.footer-icon {
  display: inline-block;
  margin-left: 0.25rem;
  width: 1rem;
  height: 1rem;
  color: var(--primary-color);
  animation: pulse 3s infinite;
  vertical-align: middle;
}

/* 动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.8;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes spin-reverse {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-360deg);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-20px);
  }

  60% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

@keyframes pulse-slow {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.8;
  }
}

/* 响应式设计 */
@media (width <= 768px) {
  .timeline-icon-container {
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-content {
    margin-top: 1.5rem;
    margin-left: 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

/* Element Plus 组件样式覆盖 */
.el-card {
  border: none;
  box-shadow: 0 10px 30px rgb(0 0 0 / 5%);
  transition: all 0.5s;
}

.el-card:hover {
  box-shadow: 0 20px 40px rgb(0 0 0 / 10%);
}

.el-tag {
  color: #fff;
  border: none;
  font-weight: 500;
}

.el-button.is-circle {
  width: 50px;
  height: 50px;
}

.el-divider--horizontal {
  margin: 0;
}
